.class public Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/os/Handler;

.field private f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private g:I

.field private h:Ljava/util/ArrayList;

.field private i:Lcom/waiqin365/lightapp/visit/b/bg;

.field private j:Ljava/lang/String;

.field private k:Landroid/widget/LinearLayout;

.field private l:Landroid/widget/Button;

.field private m:Z

.field private n:Lcom/waiqin365/lightapp/view/NoNetView;

.field private o:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->g:I

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->j:Ljava/lang/String;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->m:Z

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->o:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/visit/fy;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/fy;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->e:Landroid/os/Handler;

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->g:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->g:I

    return v0
.end method

.method private b()V
    .locals 6

    const v5, 0x7f0b0039

    const/4 v4, 0x0

    const v0, 0x7f0c0247

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const v1, 0x7f0c0c4f

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->b:Landroid/widget/ImageView;

    const v1, 0x7f0c0c51

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->c:Landroid/widget/TextView;

    const v1, 0x7f0c0c52

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->d:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->c:Landroid/widget/TextView;

    const v2, 0x7f080735

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->d:Landroid/widget/TextView;

    const v2, 0x7f080012

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->b:Landroid/widget/ImageView;

    invoke-virtual {v1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->d:Landroid/widget/TextView;

    invoke-virtual {v1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "canAddRoute"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    const v1, 0x7f0c0b01

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->k:Landroid/widget/LinearLayout;

    const v1, 0x7f0c0b02

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->l:Landroid/widget/Button;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->l:Landroid/widget/Button;

    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v1, 0x7f0c01cb

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setHeaderDividersEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setFooterDividersEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setHeadViewBackgroundResource(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setFooterViewBackgroundResource(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v2, Lcom/waiqin365/lightapp/visit/fz;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/visit/fz;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)V

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v2, Lcom/waiqin365/lightapp/visit/ga;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/visit/ga;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)V

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonHistoryListener(Lcom/waiqin365/lightapp/dailyreport/view/aa;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v2, Lcom/waiqin365/lightapp/visit/gb;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/visit/gb;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)V

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v1, Lcom/waiqin365/lightapp/visit/b/bg;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->a:Landroid/content/Context;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->h:Ljava/util/ArrayList;

    invoke-direct {v1, v2, v3}, Lcom/waiqin365/lightapp/visit/b/bg;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->i:Lcom/waiqin365/lightapp/visit/b/bg;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->i:Lcom/waiqin365/lightapp/visit/b/bg;

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/visit/b/bg;->a(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->i:Lcom/waiqin365/lightapp/visit/b/bg;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->i:Lcom/waiqin365/lightapp/visit/b/bg;

    sget-object v2, Lcom/waiqin365/lightapp/visit/b/bk;->a:Lcom/waiqin365/lightapp/visit/b/bk;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/visit/b/bg;->a(Lcom/waiqin365/lightapp/visit/b/bk;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->i:Lcom/waiqin365/lightapp/visit/b/bg;

    new-instance v2, Lcom/waiqin365/lightapp/visit/gc;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/visit/gc;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)V

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/visit/b/bg;->a(Lcom/waiqin365/lightapp/visit/b/bj;)V

    const v1, 0x7f0c00cb

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->n:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->n:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v1, v1, Lcom/waiqin365/lightapp/view/NoNetView;->b:Landroid/widget/TextView;

    invoke-virtual {v1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-boolean v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->m:Z

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    const/high16 v1, 0x420c0000    # 35.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1, v4, v4, v4}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    :cond_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->d:Landroid/widget/TextView;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->h:Ljava/util/ArrayList;

    return-object v0
.end method

.method private c()V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->j:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->a:Landroid/content/Context;

    const v1, 0x7f0805b0

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_0
    return-void

    :cond_0
    const v0, 0x7f08056c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v2, "condition.page"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget v4, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->g:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v2, "condition.visitId"

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->j:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Lcom/waiqin365/lightapp/visit/a/a/o;

    invoke-direct {v2, v0, v1}, Lcom/waiqin365/lightapp/visit/a/a/o;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->e:Landroid/os/Handler;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    goto :goto_0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->n:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)Lcom/waiqin365/lightapp/visit/b/bg;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->i:Lcom/waiqin365/lightapp/visit/b/bg;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->c()V

    return-void
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->a:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public back()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->back(Lcom/waiqin365/lightapp/visit/b/bf;)V

    return-void
.end method

.method public back(Lcom/waiqin365/lightapp/visit/b/bf;)V
    .locals 9

    const/4 v3, 0x0

    new-instance v6, Landroid/content/Intent;

    invoke-direct {v6}, Landroid/content/Intent;-><init>()V

    if-eqz p1, :cond_4

    iget-object v0, p1, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    if-eqz v0, :cond_4

    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->o:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->o:Ljava/lang/String;

    const/16 v1, 0x2c

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;C)Ljava/util/ArrayList;

    move-result-object v8

    move v2, v3

    :goto_0
    iget-object v0, p1, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v2, v0, :cond_3

    move v5, v3

    move v4, v3

    :goto_1
    if-eqz v8, :cond_0

    invoke-virtual {v8}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v5, v0, :cond_0

    invoke-virtual {v8, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    const/4 v0, 0x1

    :goto_2
    add-int/lit8 v1, v5, 0x1

    move v5, v1

    move v4, v0

    goto :goto_1

    :cond_0
    if-nez v4, :cond_1

    iget-object v0, p1, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v7, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_2
    iget-object v0, p1, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    invoke-virtual {v7, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :cond_3
    const-string/jumbo v0, "cmList"

    invoke-virtual {v6, v0, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "route"

    invoke-virtual {v6, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    :cond_4
    const/16 v0, 0x80

    invoke-virtual {p0, v0, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->setResult(ILandroid/content/Intent;)V

    new-instance v0, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "returnTo"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iput-object v6, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->overridePendingTransition(II)V

    return-void

    :cond_5
    move v0, v4

    goto :goto_2
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    packed-switch p1, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->g:I

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->c()V

    goto :goto_0

    :pswitch_2
    if-eqz p3, :cond_0

    const-string/jumbo v0, "route"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bf;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->back(Lcom/waiqin365/lightapp/visit/b/bf;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x12d
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    :sswitch_0
    return-void

    :sswitch_1
    const-string/jumbo v0, "cm_select"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "from"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->a:Landroid/content/Context;

    const-string/jumbo v1, "route_select_back"

    invoke-static {v0, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->back()V

    goto :goto_0

    :sswitch_2
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->a:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "visitorId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->j:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "isEdit"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/16 v1, 0x12f

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->overridePendingTransition(II)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0b02 -> :sswitch_0
        0x7f0c0c4f -> :sswitch_1
        0x7f0c0c52 -> :sswitch_2
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->a:Landroid/content/Context;

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030225

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "windowMode"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->m:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "enableIds"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->o:Ljava/lang/String;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->a()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->h:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "visitorId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->j:Ljava/lang/String;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSelectCMFromRouteActy;->b()V

    return-void
.end method
